﻿using Mt.Site.Core.Navigations.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Modules.Dto
{
    public class UpdateFrontendPageDto
    {
        public Guid Id { get; set; }

        public DateTime? LastModificationTime { get; set; }


        [Required]
        [StringLength(FrontEndPage.MaxNameLength)]
        public string Name { get; set; }


        [StringLength(FrontEndPage.MaxDescriptionLength)]
        public string Description { get; set; }

        [Required]
        public Guid BackEndModuleId { get; set; }


        [StringLength(FrontEndPage.MaxNameLength)]
        public string ControllerName { get; set; }

        [StringLength(FrontEndPage.MaxNameLength)]
        public string ActionName { get; set; }

        [StringLength(250)]
        public string Url { get; set; }

        [StringLength(10)]
        public string Target { get; set; }

        public bool IsActive { get; set; }

        public int Order { get; set; }

        public bool IsDetailPage { get; set; }

        public bool IsDefault { get; set; }

        public Guid? DetailPageId { get; set; }
    }
}
